package com.geyue.core.service;

import com.geyue.common.base.service.BaseService;
import com.geyue.common.toolbox.result.Res;
import com.geyue.core.model.Business;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by Lyon on 2017/3/27.
 */
public interface BusinessService extends BaseService<Business> {

    Res submit(Business business);

    List<Business> getListByUid(Integer uid,Integer year,Integer quarter);

    void export(HttpServletRequest request, HttpServletResponse response, String start , String end);

    Res getTotal(Integer year,Integer quarter,Integer uid);

    Res readExcel(MultipartFile file);

}
